#include "Window.h"
#include <iostream>

// 实现类定义
class WindowImpl {
public:
    void open() {
        std::cout << "Window opened." << std::endl;
        // 添加特定于平台的开窗代码
    }

    void close() {
        std::cout << "Window closed." << std::endl;
        // 添加特定于平台的关窗代码
    }

    void resize(int width, int height) {
        std::cout << "Window resized to " << width << "x" << height << "." << std::endl;
        // 添加特定于平台的调整窗口大小代码
    }
};

// 外部类方法实现
Window::Window() : impl(new WindowImpl()) {}

Window::~Window() {
    delete impl;
}

void Window::open() {
    impl->open();
}

void Window::close() {
    impl->close();
}

void Window::resize(int width, int height) {
    impl->resize(width, height);
}